################################################################
# This is simply example of tuple
################################################################

tuple     = ( 'abcd', 786 , 2.23, 'john', 70.2  )
tinytuple = (123, 'john')

print tuple             # Prints complete list
print tuple[0]          # Prints first element of the list
print tuple[1:3]        # Prints elements starting from 2nd till 3rd 
print tuple[2:]         # Prints elements starting from 3rd element
print tinytuple * 2     # Prints list two times
print tuple + tinytuple # Prints concatenated lists

#Following is invalid with tuple, because we attempted to update a tuple,
#which is not allowed. Similar case is possible with lists:

tuple    = ( 'abcd', 786 , 2.23, 'john', 70.2  )
list     = [ 'abcd', 786 , 2.23, 'john', 70.2  ]

tuple[2] = 1000     # Invalid syntax with tuple
list[2]  = 1000     # Valid syntax with list
